package com.lmk.mkcc.feign;

import com.lmk.mkcc.result.JSONResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class GetMediaFileServicefallbackFactory implements FallbackFactory<GetMediaFileService> {
    @Override
    public GetMediaFileService create(Throwable throwable) {
        return new GetMediaFileService() {
            @Override
            public JSONResult getMediaByCourseId(Long courseId) {
                return new JSONResult();
            }
        };
    }
}
